<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>后台管理系统</title>
<link rel="stylesheet" href="Public/css/layout.css" type="text/css"
	media="screen" />
<script type="text/javascript">
	$(document).ready(function() {
		$(".tablesorter").tablesorter();
	});
	$(document).ready(function() {

		//When page loads...
		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content

		//On Click Event
		$("ul.tabs li").click(function() {

			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content

			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active ID content
			return false;
		});

	});
</script>
<script type="text/javascript">
	$(function() {
		$('.column').equalHeight();
	});
</script>

</head>


<body>
	<header id="header">
		<hgroup>
			<h1 class="site_title">
				<a href="tpl/admin/index.html">后台管理面板</a>
			</h1>
			<h2 class="section_title"></h2>
			<div class="btn_view_site">
				<a href="Application/Home/View/index.html">查看网站</a>
			</div>
		</hgroup>
</header>
	<!-- end of header bar -->

	<!-- end of header bar -->
	<section id="secondary_bar">
		<div class="user">
			<p>admin</p>
			<!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
		</div>
		<div class="breadcrumbs_container">
			<article class="breadcrumbs">
				<a href="index.php?m=home&c=index&a=login">后台管理系统</a>
				<div class="breadcrumb_divider"></div>
				<a class="current">增加管理员</a>
			</article>
		</div>
	</section>
	<!-- end of secondary bar -->
	<aside id="sidebar" class="column">
	<h3>内容管理</h3>
	<ul class="toggle">
		<li class="icn_new_article"><a
			href="index.php?m=home&c=index&a=columnadd">添加栏目</a></li>
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=columnlist">管理栏目</a></li>
		<li class="icn_new_article"><a
			href="index.php?m=home&c=index&a=newsadd">添加新闻</a></li>
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=newslist">管理新闻</a></li>
		<li style="display: none;" class="icn_categories"><a
			href="">视图模型</a></li>
		<li class="icn_folder"><a
			href="index.php?m=home&c=index&a=createindex">生成首页</a></li>
	</ul>
	
	<h3>会员管理</h3>
	<ul class="toggle"><!-- style="display: none;" -->
		<li class="icn_view_users"><a
			href="index.php?m=home&c=index&a=userlist">会员信息</a></li>
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=userlist">管理会员</a></li>
	</ul>
	
	<h3>管理员管理</h3>
	<ul class="toggle" >
		<li class="icn_add_user"><a
			href="index.php?m=home&c=index&a=adminadd">添加管理员</a></li>
		<li class="icn_profile"><a
			href="index.php?m=home&c=index&a=adminlist">查看管理员</a></li>
		<!-- <li class="icn_folder"><a
			href="#">生成首页</a></li> -->
	</ul>
	
	<h3>角色管理</h3>
	<ul class="toggle">
		<li class="icn_add_user"><a
			href="index.php?m=home&c=index&a=roleadd">添加角色</a></li>
	</ul>
	<ul class="toggle">
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=rolelist">管理角色</a></li>
	</ul>
	
	<h3>个人信息</h3>
	<ul class="toggle">
		<li class="icn_edit_article"><a
			href="#">修改个人资料</a></li>
		<li class="icn_security"><a
			href="index.php?m=home&c=index&a=changepwd">修改密码</a></li>
		<li class="icn_jump_back"><a
			href="index.php?m=home&c=index&a=logout">退出登录</a></li>
	</ul>
	<footer> </footer>
</aside>
<!-- end of sidebar -->
	<section id="main" class="column">
		<form id="form1" name="form1" method="post"
			action="index.php?m=home&c=index&a=adminadd">
			<article class="module width_full">
				<header>
					<h3>添加管理员</h3>
				</header>
				<div class="module_content">
					<fieldset>
						<label>管理员账户</label> <input type="text" name="username"
							value="<?php echo ((isset($data[0]["column"]) && ($data[0]["column"] !== ""))?($data[0]["column"]):''); ?>">
					</fieldset>
					<fieldset style="width: 100%; float: left; margin-right: 3%;">
						<label>密码</label> <input type="text" name="password"
							style="width: 95%;" value="<?php echo ((isset($data[0]["url"]) && ($data[0]["url"] !== ""))?($data[0]["url"]):''); ?>">
					</fieldset>
					<fieldset style="width: 100%; float: left; margin-right: 3%;">
						<label>角色：</label> 
						<select name="role">
							<?php if(is_array($data)): foreach($data as $key=>$value): ?><option value=<?php echo ($value["role"]); ?>><?php echo ($value["role"]); ?></option><?php endforeach; endif; ?>
						<select>
					</fieldset>

					<div class="clear"></div>
				</div>
				<footer>
					<div class="submit_link">
						<input type="submit" name="submit" value="添加" class="alt_btn" />
					</div>
				</footer>
			</article>
		</form>
		<div class="spacer"></div>
	</section>
</body>
</html>